﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using AutoMapper;
using FwProject.ShoppingMall.Shop;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace FwProject.Shop.Dto
{
    [AutoMap(typeof(ShopProduct))]
    public  class ShopProductListAppDto:EntityDto<Guid>
    {
        /// <summary>
        /// 商品分类id
        /// </summary>
        [Display(Name = "商品分类编号")]
        public Guid ShopTypeid { get; set; }

        [Display(Name = "商品宣传图片")]
        public string ImagePic { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Display(Name = "商品名称")]
        public string ProductName { get; set; }
        /// <summary>
        /// 规格销售价
        /// </summary>
        [Display(Name = "规格销售价")]
        public decimal SpcemarketPrice { get; set; } = 0m;
        /// <summary>
        /// 规格销售价
        /// </summary>
        [Display(Name = "市场销售价")]
        public decimal MarketPrice { get; set; } = 0m;
        /// <summary>
        /// 是否开启规格
        /// </summary>
        [Display(Name = "是否开启规格")]
        public bool SpceIsActive { get; set; } = false;
        /// <summary>
        /// 品牌id
        /// </summary>
        [Display(Name = "品牌编号")]
        public Guid? Brandid { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [Display(Name = "单位")]
        public string Unit { get; set; }
        /// <summary>
        /// 是否上架
        /// </summary>
        public bool IsGrounding { get; set; }
        /// <summary>
        /// 总的购买数
        /// </summary>
        [IgnoreMap]
        public int PayCount { get; set; }
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 销售模式
        /// </summary>
        [Display(Name = "销售模式")]
        public ShopProductFlag ShopProductFlag { get; set; } = ShopProductFlag.正常;
        /// <summary>
        /// 秒杀价格
        /// </summary>
        [Display(Name ="秒杀价格")]
        [Obsolete]
        public decimal ShopSkillPrice { get; set; } = 0.0m;
        /// <summary>
        /// 产品sku
        /// </summary>
        [IgnoreMap]
        public List<ShopProductSkuDto> shopProductSku { get; set; }

        /// <summary>
        ///商品标签
        /// </summary>
        [IgnoreMap]
        public List<ShopProductAppTagDto> ShopTagDtos { get; set; }
    }
}
